<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="Admin.AdminDeal"%>
<%@page import="java.util.*" %>
<%

//需要先实例化对象
AdminDeal Admin=new AdminDeal();
String in=request.getParameter("DealID");
Admin.setAdmID(in);
Admin.setAdmKey(request.getParameter("AdmKey"));
Admin.setAdmTrueName(request.getParameter("AdmTrueName"));
Admin.setAdmBirthday(request.getParameter("AdmBirthday"));
Admin.setAdmSex(request.getParameter("AdmSex"));
Admin.setAdmTel(request.getParameter("AdmTel"));
Admin.setAdmEmail(request.getParameter("AdmEmail"));
%>

<html>
  <head>
    <title>修改管理员信息</title>
  </head>
  <body>
  <%
    if(Admin.UpdateAdmin(in,Admin.getAdmID(),Admin.getAdmKey(),Admin.getAdmTrueName(),Admin.getAdmBirthday(),Admin.getAdmSex(),Admin.getAdmTel(),Admin.getAdmEmail())==0)
	{
    
	   out.print("<script>alert('修改管理员信息失败，请重新尝试  ')</script>");
    }
    else
    {
	   out.print("<script>alert('修改管理员信息成功 ')</script>");
	   
    }
    %>
  	 <script type="text/javascript">

        window.location.href="AdminShow.jsp";    

   </script>
  </body>
</html>
